package com.ht.medicaltreatment.bean;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

import java.util.List;

public class ApplyConsumableJSON implements IRequestApi, IRequestType {

    private List<ProjectConsumableRecordDetailsListBean> projectConsumableRecordDetailsList;
    private int projectId;

    public List<ProjectConsumableRecordDetailsListBean> getProjectConsumableRecordDetailsList() {
        return projectConsumableRecordDetailsList;
    }

    public void setProjectConsumableRecordDetailsList(List<ProjectConsumableRecordDetailsListBean> projectConsumableRecordDetailsList) {
        this.projectConsumableRecordDetailsList = projectConsumableRecordDetailsList;
    }

    public int getProjectId() {
        return projectId;
    }

    public void setProjectId(int projectId) {
        this.projectId = projectId;
    }

    @NonNull
    @Override
    public String getApi() {
        return "/other/app_projectConsumableRecord/saveProjectConsumableRecord.do";
    }

    @NonNull
    @Override
    public BodyType getBodyType() {
        return BodyType.JSON;
    }

    public static class ProjectConsumableRecordDetailsListBean {
        private int projectConsumableId;
        private int useNumber;

        public int getProjectConsumableId() {
            return projectConsumableId;
        }

        public void setProjectConsumableId(int projectConsumableId) {
            this.projectConsumableId = projectConsumableId;
        }

        public int getUseNumber() {
            return useNumber;
        }

        public void setUseNumber(int useNumber) {
            this.useNumber = useNumber;
        }
    }
}
